from google.appengine.ext import db

class Household(db.Model):
	user = db.UserProperty()

class Roommate(db.Model):
	name = db.StringProperty(required=True)
	household = db.ReferenceProperty(Household,required=True)

class Bill(db.Model):
	name = db.StringProperty(required=True)
	billAmount = db.IntegerProperty(required=True)
	dueDate = db.DateProperty(required=True)
	owner = db.ReferenceProperty(Roommate,required=True)
